package com.jch.dm.chapter_2_adapter.demo2;

import com.jch.dm.chapter_2_adapter.demo1.Banner;

/**
 * @author: jch
 * 对象适配器模式 委托方式 实例
 **/
public class PrintBanner {
    private Banner banner;

    public PrintBanner(String string) {
        this.banner = new Banner(string);
    }

    public void printWeak(){
        banner.showWithParen();
    }

    public void printStrong() {
        banner.showWithAster();
    }
}
